/**
 * Copyright (C), 2020, JieYi Software System Co., Ltd.
 * All rights reserved.
 * FileName:       CommonConfig.java
 *
 * @Description:
 * @author: feiwe
 * Modification History:
 * Date         Author        Version        Discription
 * -------------------------------------------------------
 * 2020/11/22      feiwe                         add
 */


package com.fengwei.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class CommonProperty {

    @Value("${database.aes.key}")
    private String databaseAesKey;

    @Value("${database.maxActive}")
    private Integer databaseMaxActive;

    @Value("${database.minIdle}")
    private Integer databaseMinIdle;

    @Value("${database.initialSize}")
    private Integer databaseInitialSize;

    @Value("${datachange.threshold}")
    private Integer datachangeThreshold;

    private Map<String, Object> sshServerUserKeyMap = new HashMap();

    @Value("${sshserver.aes.key}")
    private String sshserverAesKey;

    private String ver;


    public String getDatabaseAesKey() {
        return databaseAesKey;
    }

    public void setDatabaseAesKey(String databaseAesKey) {
        this.databaseAesKey = databaseAesKey;
    }

    public Integer getDatabaseMaxActive() {
        return databaseMaxActive;
    }

    public void setDatabaseMaxActive(Integer databaseMaxActive) {
        this.databaseMaxActive = databaseMaxActive;
    }

    public Integer getDatabaseMinIdle() {
        return databaseMinIdle;
    }

    public void setDatabaseMinIdle(Integer databaseMinIdle) {
        this.databaseMinIdle = databaseMinIdle;
    }

    public Integer getDatabaseInitialSize() {
        return databaseInitialSize;
    }

    public void setDatabaseInitialSize(Integer databaseInitialSize) {
        this.databaseInitialSize = databaseInitialSize;
    }

    public Integer getDatachangeThreshold() {
        return datachangeThreshold;
    }

    public void setDatachangeThreshold(Integer datachangeThreshold) {
        this.datachangeThreshold = datachangeThreshold;
    }

    public Map<String, Object> getSshServerUserKeyMap() {
        return sshServerUserKeyMap;
    }

    public void setSshServerUserKeyMap(Map<String, Object> sshServerUserKeyMap) {
        this.sshServerUserKeyMap = sshServerUserKeyMap;
    }

    public String getSshserverAesKey() {
        return sshserverAesKey;
    }

    public void setSshserverAesKey(String sshserverAesKey) {
        this.sshserverAesKey = sshserverAesKey;
    }

    public String getVer() {
        return ver;
    }

    public void setVer(String ver) {
        this.ver = ver;
    }
}
